package com.guoyu.project.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Attachment implements Serializable{

	private Integer attachment_id;
	private String name;
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date att_creat_time;
	private String attachment_url;
	private String attachmentFileName;
	private Integer status;
	private int userId;
	public Integer getAttachment_id() {
		return attachment_id;
	}
	public void setAttachment_id(Integer attachment_id) {
		this.attachment_id = attachment_id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getAtt_creat_time() {
		return att_creat_time;
	}
	public void setAtt_creat_time(Date att_creat_time) {
		this.att_creat_time = att_creat_time;
	}
	public String getAttachment_url() {
		return attachment_url;
	}
	public void setAttachment_url(String attachment_url) {
		this.attachment_url = attachment_url;
	}
	public String getAttachmentFileName() {
		return attachmentFileName;
	}
	public void setAttachmentFileName(String attachmentFileName) {
		this.attachmentFileName = attachmentFileName;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	@Override
	public String toString() {
		return "Attachment [attachment_id=" + attachment_id + ", name=" + name + ", att_creat_time=" + att_creat_time
				+ ", attachment_url=" + attachment_url + ", attachmentFileName=" + attachmentFileName + ", status="
				+ status + ", userId=" + userId + "]";
	}
	public Attachment(Integer attachment_id, String name, Date att_creat_time, String attachment_url,
			String attachmentFileName, Integer status, int userId) {
		super();
		this.attachment_id = attachment_id;
		this.name = name;
		this.att_creat_time = att_creat_time;
		this.attachment_url = attachment_url;
		this.attachmentFileName = attachmentFileName;
		this.status = status;
		this.userId = userId;
	}
	public Attachment() {
		super();
		// TODO Auto-generated constructor stub
	}
}
